
import React, { Component } from "react";

export default class App extends Component {
  state = {
    inputVla: "( ఠൠఠ )ﾉ",
  };
  handleSubmit = (params) => {
    console.log("提交：", this.state.inputVla);
  };
  handleChange = (e) => {
    console.log(e.target.value);
    this.setState({
      inputVla: e.target.value,
    });
  };
  render() {
    return (
      <div>
        <input
          type="text"
          value={this.state.inputVla}
          onChange={this.handleChange}
        />
        <button id="btn" onClick={this.handleSubmit}>
          提交
        </button>
      </div>
    );
  }
}
